package com.example.sequences.core.auditing;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.domain.AuditorAware;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

/**
 * AuditingConfig
 *
 * @author maxsc
 * @title AuditingConfig.java
 * @date 2018/5/8
 */
@Configuration
@EnableJpaAuditing
public class AuditingConfig {
    @Bean
    AuditorAware<String> auditorProvider() {
        return new SpringSecurityAuditorAware();
    }
}
